<?php
	$id=$_SESSION["idkh"];
	
	$cart=mysql_query("select product.masp,product.tensp,product.hinhanh,cart.gia,cart.soluong,cart.tongtien from product,cart where product.masp=cart.masp && cart.idkh='$id'");
	$num=mysql_num_rows($cart);
	$sql1=mysql_query("select sum(soluong)as tong,sum(tongtien)as tongtien from cart where idkh='$id'");
	$rows=mysql_fetch_array($sql1);
	
	include("view/cart.php");

?>